import Vue from "vue";
import App from "./App";

// 封装请求数据失败的提示信息
uni.$showMsg = function(title='数据获取失败', duration=1500, icon='none') {
  return uni.showToast({
    title,
    duration,
    icon
  })
}
// 挂载Vuex
import store from "@/store";

// 挂载工具包
import utils from "@/utils";
Vue.use(utils);

Vue.config.productionTip = false;

App.mpType = "app";

const app = new Vue({
  ...App,
  store
});
app.$mount();
Vue.prototype.$app = new Vue();
uni.$app = app;
